function gettreecode(){
    var treename=localStorage.getItem("treename");
    console.log("----------------------")
    console.log(treename);
    console.log("----------------------")
    $("#kcfl").val(treename);

}
var sid=localStorage.getItem("slid");
$.ajax({
    type: "get",
    url: "/advanced/selectfeedbackbyid",
    data:{id:sid},
    success:function(res){
        console.log(res.data);
        $("#yhzh").val(res.data.useraccount);
        if(res.data.feedbacktype==0){
            $("#fklx").val("视频反馈");
        }else if(res.data.feedbacktype==1){
            $("#fklx").val("图片反馈");
        }
        if(res.data.opinionclass==0){
            $("#yjlx").val("一般");
        }else if(res.data.opinionclass==0){
            $("#yjlx").val("很好");
        }
        $("#fksj").val(res.data.feedbacktime);
        $("#fknr").val(res.data.feedbackcontent);
    }
})
layui.use(['upload', 'element', 'layer','form'], function () {
    var upload = layui.upload,//得到 upload 对象
        form = layui.form;
    form.on('submit(formDemo)', function (data) {
        $.ajax({
            type: "post",
            url: "/advanced/updatebackstate",
            data: {id: sid},
            success: function (res) {
                if (res.state == 200) {
                    parent.yerefresh();
                    var index = parent.layer.getFrameIndex(window.name);
                    parent.layer.close(index);
                }
            }
        })
    });
})
